package www.gzjh.jh365.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gzjh.jh365.entity.User;

import www.gzjh.jh365.inter.IUserService;

/**
 * 用户管理控制器
 * @author   lionel
 * @company  贵州劲泓信息技术有限公司
 * @dateTime 2018年8月24日 上午10:45:55
 * @function
 */
@Controller
@RequestMapping("/user")
public class UserController {
	
	@Autowired
	private IUserService userService;
	
	@PostMapping("/regist")
	@ResponseBody
	public void regist(User user) {
		userService.regist(user);
	}
	
	@PostMapping("/login")
	@ResponseBody
	public void login(User user) {
		userService.login(user);
	}

}
